<template>
  <div class="app-container">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
      <el-form-item label="导入批次号" prop="batchNo">
        <el-input v-model="queryParams.batchNo" placeholder="请输入导入批次号" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="管养日期" prop="createDate">
        <el-date-picker clearable v-model="queryParams.createDate" type="date" value-format="yyyy-MM-dd"
          placeholder="请选择管养日期">
        </el-date-picker>
      </el-form-item>
      <el-form-item label="社区" prop="community">
        <el-input v-model="queryParams.community" placeholder="请输入社区" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item label="公厕名称" prop="toiletName">
        <el-input v-model="queryParams.toiletName" placeholder="请输入公厕名称" clearable @keyup.enter.native="handleQuery" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <el-row :gutter="10" class="mb8">

      <el-col :span="1.5">
        <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete"
          v-hasPermi="['toiletv2:toiletImpDetailV2:remove']">删除</el-button>
      </el-col>
      <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

    <el-table v-loading="loading" :data="toiletImpDetailV2List" border @selection-change="handleSelectionChange">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="序号" align="center" prop="idx" />
      <el-table-column label="导入批次号" align="center" prop="batchNo" width="180" />
      <el-table-column label="日期" align="center" prop="createDate" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.createDate, '{y}-{m}-{d}') }}</span>
        </template>
      </el-table-column>
      <el-table-column label="项目名称" align="center" prop="projectName" />
      <el-table-column label="社区" align="center" prop="community" />
      <el-table-column label="公厕名称" align="center" prop="toiletName" width="260" />
      <!-- <el-table-column label="公厕编码" align="center" prop="toiletCode" />       -->
      <el-table-column label="公厕正常开放 " align="center" prop="opened" width="100">
        <template slot-scope="scope">
          <TickCross :value="scope.row.opened" />
        </template>
      </el-table-column>
      <el-table-column label="公共洗手间标识" align="center" prop="logo" width="120">
        <template slot-scope="scope">
          <TickCross :value="scope.row.logo" />
        </template>
      </el-table-column>
      <el-table-column label="通风除臭" align="center" prop="ventilate">
        <template slot-scope="scope">
          <TickCross :value="scope.row.ventilate" />
        </template>
      </el-table-column>
      <el-table-column label="洗手盆" align="center" prop="handBasin">
        <template slot-scope="scope">
          <TickCross :value="scope.row.handBasin" />
        </template>
      </el-table-column>
      <el-table-column label="擦手纸或干手机" align="center" prop="handry" width="120">
        <template slot-scope="scope">
          <TickCross :value="scope.row.handry" />
        </template>
      </el-table-column>
      <el-table-column label="洗手液" align="center" prop="handSanitizer">
        <template slot-scope="scope">
          <TickCross :value="scope.row.handSanitizer" />
        </template>
      </el-table-column>
      <el-table-column label="水龙头" align="center" prop="waterFaucet">
        <template slot-scope="scope">
          <TickCross :value="scope.row.waterFaucet" />
        </template>
      </el-table-column>
      <el-table-column label="面镜" align="center" prop="masks">
        <template slot-scope="scope">
          <TickCross :value="scope.row.masks" />
        </template>
      </el-table-column>
      <el-table-column label="地面" align="center" prop="floor">
        <template slot-scope="scope">
          <TickCross :value="scope.row.floor" />
        </template>
      </el-table-column>
      <el-table-column label="窗户、墙面" align="center" prop="wallspace" width="100">
        <template slot-scope="scope">
          <TickCross :value="scope.row.wallspace" />
        </template>
      </el-table-column>
      <el-table-column label="天花板" align="center" prop="ceiling">
        <template slot-scope="scope">
          <TickCross :value="scope.row.ceiling" />
        </template>
      </el-table-column>
      <el-table-column label="照明设施" align="center" prop="lights">
        <template slot-scope="scope">
          <TickCross :value="scope.row.lights" />
        </template>
      </el-table-column>
      <el-table-column label="厕内整洁" align="center" prop="innerClean">
        <template slot-scope="scope">
          <TickCross :value="scope.row.innerClean" />
        </template>
      </el-table-column>
      <el-table-column label="厕门、厕位隔断" align="center" prop="cubicle" width="120">
        <template slot-scope="scope">
          <TickCross :value="scope.row.cubicle" />
        </template>
      </el-table-column>
      <el-table-column label="厕间纸巾" align="center" prop="cubicleTissue">
        <template slot-scope="scope">
          <TickCross :value="scope.row.cubicleTissue" />
        </template>
      </el-table-column>
      <el-table-column label="大小便器" align="center" prop="toilet">
        <template slot-scope="scope">
          <TickCross :value="scope.row.toilet" />
        </template>
      </el-table-column>
      <el-table-column label="厕间干净" align="center" prop="roomClean">
        <template slot-scope="scope">
          <TickCross :value="scope.row.roomClean" />
        </template>
      </el-table-column>
      <el-table-column label="冲水设备" align="center" prop="flushing">
        <template slot-scope="scope">
          <TickCross :value="scope.row.flushing" />
        </template>
      </el-table-column>
      <el-table-column label="大便器安全扶手" align="center" prop="grabar" width="120">
        <template slot-scope="scope">
          <TickCross :value="scope.row.grabar" />
        </template>
      </el-table-column>
      <el-table-column label="手纸架挂钩、搁物板" align="center" prop="hardware" width="140">
        <template slot-scope="scope">
          <TickCross :value="scope.row.hardware" />
        </template>
      </el-table-column>
      <el-table-column label="儿童洗手盆" align="center" prop="childHandBasin" width="110">
        <template slot-scope="scope">
          <TickCross :value="scope.row.childHandBasin" />
        </template>
      </el-table-column>
      <el-table-column label="无障碍设施" align="center" prop="barrierfreeFacilities" width="110">
        <template slot-scope="scope">
          <TickCross :value="scope.row.barrierfreeFacilities" />
        </template>
      </el-table-column>
      <el-table-column label="母婴室" align="center" prop="babyCareRoom">
        <template slot-scope="scope">
          <TickCross :value="scope.row.babyCareRoom" />
        </template>
      </el-table-column>

      <el-table-column label="记录表图片" align="center" prop="originalImage" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.originalImage" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="公厕正常开放-处理前" align="center" prop="openedBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.openedBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="公厕正常开放-处理后" align="center" prop="openedAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.openedAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="公共洗手间标识-处理前" align="center" prop="logoBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.logoBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="公共洗手间标识-处理后" align="center" prop="logoAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.logoAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="通风除臭-处理前" align="center" prop="ventilateBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.ventilateBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="通风除臭-处理后" align="center" prop="ventilateAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.ventilateAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="洗手盆.台-处理前" align="center" prop="handBasinBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.handBasinBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="洗手盆.台-处理后" align="center" prop="handBasinAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.handBasinAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="擦手纸或干手机-处理前" align="center" prop="handryBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.handryBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="擦手纸或干手机-处理后" align="center" prop="handryAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.handryAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="洗手液-处理前" align="center" prop="handSanitizerBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.handSanitizerBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="洗手液-处理后" align="center" prop="handSanitizerAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.handSanitizerAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="水龙头-处理前" align="center" prop="waterFaucetBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.waterFaucetBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="水龙头-处理后" align="center" prop="waterFaucetAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.waterFaucetAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="面镜-处理前" align="center" prop="masksBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.masksBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="面镜-处理后" align="center" prop="masksAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.masksAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="地面-处理前" align="center" prop="floorBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.floorBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="地面-处理后" align="center" prop="floorAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.floorAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="窗户、墙面-处理前" align="center" prop="wallspaceBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.wallspaceBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="窗户、墙面-处理后" align="center" prop="wallspaceAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.wallspaceAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="天花板-处理前" align="center" prop="ceilingBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.ceilingBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="天花板-处理后" align="center" prop="ceilingAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.ceilingAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="照明设施-处理前" align="center" prop="lightsBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.lightsBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="照明设施-处理后" align="center" prop="lightsAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.lightsAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="厕内整洁-处理前" align="center" prop="innerCleanBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.innerCleanBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="厕内整洁-处理后" align="center" prop="innerCleanAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.innerCleanAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="厕门、厕位隔断-处理前" align="center" prop="cubicleBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.cubicleBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="厕门、厕位隔断-处理后" align="center" prop="cubicleAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.cubicleAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="厕间纸巾-处理前" align="center" prop="cubicleTissueBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.cubicleTissueBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="厕间纸巾-处理后" align="center" prop="cubicleTissueAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.cubicleTissueAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="大小便器-处理前" align="center" prop="toiletBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.toiletBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="大小便器-处理后" align="center" prop="toiletAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.toiletAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="厕间干净-处理前" align="center" prop="roomCleanBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.roomCleanBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="厕间干净-处理后" align="center" prop="roomCleanAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.roomCleanAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="冲水设备-处理前" align="center" prop="flushingBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.flushingBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="冲水设备-处理后" align="center" prop="flushingAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.flushingAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="大便器安全扶手-处理前" align="center" prop="grabarBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.grabarBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="大便器安全扶手-处理后" align="center" prop="grabarAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.grabarAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="手纸架挂钩、搁物板-处理前" align="center" prop="hardwareBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.hardwareBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="手纸架挂钩、搁物板-处理后" align="center" prop="hardwareAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.hardwareAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="儿童洗手盆-处理前" align="center" prop="childHandBasinBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.childHandBasinBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="儿童洗手盆-处理后" align="center" prop="childHandBasinAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.childHandBasinAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="无障碍设施-处理前" align="center" prop="barrierfreeFacilitiesBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.barrierfreeFacilitiesBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="无障碍设施-处理后" align="center" prop="barrierfreeFacilitiesAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.barrierfreeFacilitiesAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="母婴室-处理前" align="center" prop="babyCareRoomBefore" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.babyCareRoomBefore" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="母婴室-处理后" align="center" prop="babyCareRoomAfter" width="100">
        <template slot-scope="scope">
          <image-preview :src="scope.row.babyCareRoomAfter" :width="50" :height="50" />
        </template>
      </el-table-column>
      <el-table-column label="保洁员" align="center" prop="cleaner" />
      <el-table-column label="保洁员联系电话" align="center" prop="cleanerPhone" />
      <el-table-column label="负责人" align="center" prop="owner" />
      <el-table-column label="负责人联系电话" align="center" prop="phoneNo" />
      <el-table-column label="清洁频率" align="center" prop="cleanCount" />
      <el-table-column label="异常数量" align="center" prop="anomalyCount" />
      <el-table-column label="备注" align="center" prop="remark" />
      <el-table-column label="处理状态" align="center" prop="processStatus">
        <template slot-scope="scope">
          <dict-tag :options="dict.type.sys_common_status" :value="scope.row.processStatus" />
        </template>
      </el-table-column>
      <el-table-column label="处理信息" align="center" prop="processMsg" />
      <el-table-column label="创建人" align="center" prop="createBy" />
      <el-table-column label="创建时间" align="center" prop="createTime" width="180">
        <template slot-scope="scope">
          <span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
        </template>
      </el-table-column>

    </el-table>

    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
      @pagination="getList" />

    <!-- 添加或修改V2市政公厕管养对话框 -->
    <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
      <el-form ref="form" :model="form" :rules="rules" label-width="80px">
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button :loading="buttonLoading" type="primary" @click="submitForm">确 定</el-button>
        <el-button @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>
</template>

<script>
import { listToiletImpDetailV2, delToiletImpDetailV2 } from "@/api/v2Toilet/toiletImpDetail";
import { listToiletBillV2, listInspectItem } from "@/api/v2Toilet/toiletBill";

import TickCross from "@/views/components/tickCross";


export default {
  name: "ToiletImpDetailV2",
  dicts: ['inspection_status', 'sys_common_status'],
  components: {
    TickCross
  },
  data() {
    return {
      // 按钮loading
      buttonLoading: false,
      // 遮罩层
      loading: true,
      // 选中数组
      ids: [],
      // 非单个禁用
      single: true,
      // 非多个禁用
      multiple: true,
      // 显示搜索条件
      showSearch: true,
      // 总条数
      total: 0,
      // V2市政公厕管养表格数据
      toiletImpDetailV2List: [],
      // 弹出层标题
      title: "",
      // 是否新增
      isAdd: true,
      // 是否显示弹出层
      open: false,
      // 查询参数
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        batchNo: undefined,
        createDate: undefined,
        community: undefined,
        toiletName: undefined,
        orderByColumn: "createDate,idx",
        isAsc: "desc,asc"
      },
      inspectItems: [],
      // 表单参数
      form: {},
      // 表单校验
      rules: {
      }
    };
  },
  created() {
    const batchNo = this.$route.params && this.$route.params.batchNo;
    if (batchNo) {
      this.queryParams.batchNo = batchNo;
    }
    this.getList();
    this.listItems();
  },
  methods: {
    /** 查询V2市政公厕管养列表 */
    getList() {
      this.loading = true;
      listToiletImpDetailV2(this.queryParams).then(response => {
        this.toiletImpDetailV2List = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    },
    listItems() {
      listInspectItem().then(response => {
        this.inspectItems = response.rows;
      });
    },
    // 取消按钮
    cancel() {
      this.open = false;
      this.reset();
    },
    // 表单重置
    reset() {
      this.form = {
        id: undefined,
        batchNo: undefined,
        createDate: undefined,
        community: undefined,
        toiletName: undefined,
        toiletCode: undefined,
        abnormalCount: undefined,
        opened: undefined,
        logo: undefined,
        ventilate: undefined,
        handBasin: undefined,
        handry: undefined,
        handSanitizer: undefined,
        waterFaucet: undefined,
        masks: undefined,
        floor: undefined,
        wallspace: undefined,
        ceiling: undefined,
        lights: undefined,
        innerClean: undefined,
        cubicle: undefined,
        cubicleTissue: undefined,
        toilet: undefined,
        roomClean: undefined,
        flushing: undefined,
        grabar: undefined,
        hardware: undefined,
        childHandBasin: undefined,
        barrierfreeFacilities: undefined,
        babyCareRoom: undefined,
        owner: undefined,
        phoneNo: undefined,
        cleanCount: undefined,
        remark: undefined,
        processStatus: undefined,
        processMsg: undefined,
        createTime: undefined,
        createBy: undefined,
        updateTime: undefined,
        updateBy: undefined,
        delFlag: undefined
      };
      this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    // 多选框选中数据
    handleSelectionChange(selection) {
      this.ids = selection.map(item => item.id)
      this.single = selection.length !== 1
      this.multiple = !selection.length
    },
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.open = true;
      this.isAdd = true;
      this.title = "添加V2市政公厕管养";
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.loading = true;
      this.reset();

    },
    /** 提交按钮 */
    submitForm() {

    },
    /** 删除按钮操作 */
    handleDelete(row) {
      const ids = row.id || this.ids;
      this.$modal.confirm('是否确认删除数据项？').then(() => {
        this.loading = true;
        return delToiletImpDetailV2(ids);
      }).then(() => {
        this.loading = false;
        this.getList();
        this.$modal.msgSuccess("删除成功");
      }).catch(() => {
      }).finally(() => {
        this.loading = false;
      });
    },
    /** 导出按钮操作 */
    handleExport() {
      this.download('toiletv2/toiletImpDetailV2/export', {
        ...this.queryParams
      }, `市政公厕管养2.0-${new Date().getTime()}.xlsx`)
    }
  }
};
</script>
<style rel="stylesheet/scss" lang="scss">
.el-table .cell {
  padding: 0;
}

.el-table--medium .el-table__cell {
  padding: 0;
}
</style>
